import java.io.*;
import java.util.Arrays;
import java.util.Scanner;

public class Demo17 {
	public static void main1(String[] args) throws IOException {
		StringBuilder stringBuilder = new StringBuilder();
		File file = new File("d:/test.txt");
		if (file.length() == 0) {
			return;
		}
		try (InputStream inputStream = new FileInputStream(file)) {
			try (Scanner scanner = new Scanner(inputStream)) {
				while (scanner.hasNextLine()) {
					stringBuilder.append(scanner.nextLine());
					stringBuilder.append("\r\n");
				}
			}
		}
		System.out.println(stringBuilder);
	}

	public static void main(String[] args) {
		String s="45320";
		char[] nums = s.toCharArray();
		int i = 0;
		int j = 0;
		while (i < nums.length && i + 1 < nums.length) {
			j=i+1;
			if ((int) nums[i] % 2 == (int) nums[j] % 2) {
				char temp = nums[i];
				nums[i] = nums[j];
				nums[j] = temp;
			}
			i++;
		}
	}
}

